stylecontext: Remove line that is a no-op
authorBenjamin Otte <otte@redhat.com>
Sat, 5 Sep 2015 04:46:29 +0000 (06:46 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 7 Sep 2015 12:33:35 +0000 (14:33 +0200)
Creating the transient node will already copy the widget type. So
copying again will not do anything.

gtk/gtkstylecontext.c

index e266e00e90f0c94526679fa43926294c25dc50ae..b359612903dc8e2a1484f0ca129a97580ee5b965 100644 (file)
@@ -1233,7 +1233,6 @@ gtk_style_context_save (GtkStyleContext *context)
 
   cssnode = gtk_css_transient_node_new (priv->cssnode);
   gtk_css_node_set_parent (cssnode, gtk_style_context_get_root (context));
-  gtk_css_node_set_widget_type (cssnode, gtk_css_node_get_widget_type (priv->cssnode));
 
   priv->saved_nodes = g_slist_prepend (priv->saved_nodes, priv->cssnode);
   priv->cssnode = cssnode;